﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Model
{
    /// <summary>
    /// 优惠劵表
    /// </summary>
    [Table("YHJ_Model")]
    public class YHJ_Model
    {
        /// <summary>
        /// 优惠劵Id（主键）
        /// </summary>
        [Key]
        public int YId { get; set; }
        /// <summary>
        /// 门店Id（外键）
        /// </summary>
        public int MId {  get; set; }
        /// <summary>
        /// 优惠劵名称
        /// </summary>
        public string? YName { get; set; }
        /// <summary>
        /// 优惠劵类型
        /// </summary>
        public string? YType {  get; set; }
        /// <summary>
        /// 优惠劵面值
        /// </summary>
        public decimal YMZ { get; set; }
        /// <summary>
        /// 优惠劵最低消费
        /// </summary>
       public  decimal YXF {  get; set; }
        /// <summary>
        /// 有效期(天)
        /// </summary>
        public string? YXQ {  get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime YCTume { get; set; }
        /// <summary>
        /// 优惠劵状态
        /// </summary>
        public string? YZT {  get; set; }
        /// <summary>
        /// 优惠劵是否删除
        /// </summary>
        public string? YIsDeleted {  get; set; }
    }
}
